<?php
$qry = mysql_query("SELECT * FROM `event` ORDER BY startdate DESC");
    if (!$qry){
     echo mysql_error();
    }
    while($row = mysql_fetch_array($qry)){
    ?>
     <div class="events-desc">
      <button class="editModal col-md-1 col-md-offset-10 btn btn-danger" name="<?php echo $row['id']; ?>">Edit</button>
      <br> <img src="../assets/img/eventphoto/<?php echo $row['photo']?>" class="img-about img-responsive" alt="About">
      <h2><?php echo $row['title']; ?></h2>
      <p>
       <?php echo $row['description']?>
       <br> <br> <Strong> EventDate :  <?php echo $row['startdate']."   To  ". $row['enddate'];?></Strong><br> <strong>Venue:
         <?php echo $row['venue']?></strong><br> <Strong>Agenda: <a href="#" target="_blank">Download</a> </Strong><br> 
         <strong>Speaker:<?php echo $row['speaker']?>
        </strong><br> <strong>partner:<?php echo $row['partner']?></strong><br> <strong>Sponsor:<?php echo $row['sponsor']?>
        </strong><br> <strong>Orgnizer:<?php echo $row['organizer']?></strong><br><br>
       <button type="button" class="btn btn-info">join</button>
       <button type="button" class="btn btn-info">Sponsor</button>
       <button type="button" class="btn btn-info">Exihbit</button>

      </p>
      <br>
     </div>
     
     <?php } ?>